import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './router/index'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'



Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(ElementUI)

Vue.config.productionTip = false

//将项目全部请求函数引入进来[分别暴露]
import * as http from '@/api';

Vue.prototype.$http = http;

new Vue({
  el:'#app',
  render: h => h(App),
  router:router,
  beforeCreate(){
    // this.prototype.x = this;
  }
})
